<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../style.css" rel="stylesheet" type="text/css">
<style type="text/css" media="screen">@import "../style.css";</style>
<title> VideoExpress - PHP Projet</title></head>

<body>
<div class="center">
<div class="outer" id="outer">
<div class="outer_l">
<div class="outer_r">
<!--ENTETE-->
<?php 
include ("../inc/inc-entete.php");
?>
<!--FIN ENTETE-->
<div class="right">
<a href="../Accueil.php"><span>Accueil</span></a> | <a href="Menu_Retour.php"><span>Menu Retour</span></a>
</div>
<div class="wrap main">
<div class="wrap main_l">
<div class="wrap main_r">
<!--MENU-->
<?php 
include ("../inc/inc-menu_retour.php");
?>
<!--FIN MENU-->
			
<!--CONTENT-->
<div class="center">
<div class="wrap main_content_max" id="main_content">
<div class="content">
<table class="blog" cellpadding="0" cellspacing="0">
<tr><td valign="top"><div>
		
<table class="contentpaneopen">
<tr><td class="contentheading" width="100%">MODIFIER DES FICHES D'ABONNES</td></tr>
</table>
<table class="contentpaneopen"><tr><td valign="top" colspan="2">

<?php
require ("../Outils.inc");
require ("../connect.php");

$Code=$_POST["CODE"];

$req="Select * FROM abonnes WHERE `Code` LIKE '$Code'";
$resul = DB_execSQL($req,$serv);

if ( mysql_num_rows($resul) == 0 ){
echo "<h2>Le Code d'abonn�e n'est pas correct .<br \>";
echo "<h2>Essayez de nouveau .<br \>";
echo "<form method='POST' action='ModifierAbonnes.php'> <input type='submit' value='R�essayer' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'>
</form>";

} else {

	while ( $abonne = mysql_fetch_object($resul) ) {
echo "<form method='POST' action='ExecuteModifie.php'>
				<fieldset>
				<table align='center'>
				  <tr>
					<td><input type='hidden' name='Code' value='$abonne->Code' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Nom*:</font></div></td>
					<td><input type='text' name='Nom' value='$abonne->Nom' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Prenom*:</font></div></td>
					<td><input type='text' name='Prenom' value='$abonne->Prenom' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Num�ro de rue*:</font></div></td>
					<td><input type='text' name='NoRue' value='$abonne->NoRue' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Code postal*:</font></div></td>
					<td><input type='text' name='CodePostal' value='$abonne->CodePostal' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Ville*:</font></div></td>
					<td><input type='text' name='Ville' value='$abonne->Ville' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Batiment:</font></div></td>
					<td><input type='text' name='Batiment' value='$abonne->Batiment' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Etage:</font></div></td>
					<td><input type='text' name='Etage' value='$abonne->Etage' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Digicode:</font></div></td>
					<td><input type='text' name='Digicode' value='$abonne->Digicode' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Telephone:</font></div></td>
					<td><input type='text' name='Telephone' value='$abonne->Telephone' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#000; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Email:</font></div></td>
					<td><input type='text' name='Email' value='$abonne->Email' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#000; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Banque*:</font></div></td>
					<td><input type='text' name='Banque' value='$abonne->Banque' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Guichet*:</font></div></td>
					<td><input type='text' name='Guichet' value='$abonne->Guichet' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Compte*:</font></div></td>
					<td><input type='text' name='Compte' value='$abonne->Compte' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Nombre de cassettes:</font></div></td>
					<td><input type='text' name='NbCassettes' value='$abonne->NbCassettes' size='32' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'> </font></div></td>
					<td><input type='submit' name='submit' value='Valider' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'/></td>
				  </tr>

				</table>
				</fieldset>
				</form>";
}
}

?>

</td></tr></table>
<span class="article_separator">&nbsp;</span>
</div></td></tr></table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--FIN CONTENT-->
<!--PIED-->
<?php include ("../inc/inc-pied.php"); ?>
<!-- FIN - PIED -->
</body>
</html>
